package chapter15;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/3/14 13:10
 */
public class SimpleHolder {
    private Object obj;
    public void set(Object obj){
        this.obj = obj;
    }

    public Object get(){
        return obj;
    }

    public static void main(String[] args) {
        SimpleHolder holder = new SimpleHolder();
        holder.set("item");
        String s = (String) holder.get();
    }
}
